package com.visionblue.business.ship.page.applications

import com.visionblue.business.ship.base.BaseRepository
import com.visionblue.business.ship.model.Results
import com.visionblue.business.ship.model.bean.response.ApplicationDetail
import com.visionblue.business.ship.model.bean.response.ListBean
import com.visionblue.business.ship.model.repository.RemoteRepository

/**
 * @author: xlh
 * @date: 2020-05-28 3:30 PM
 * @desc:
 */
class ApplicationsRepository : BaseRepository() {

    suspend fun getApplications(
        page: Int,
        size: Int,
        status: Int? = null,
        statuses: String? = null
    ): Results<ListBean<ApplicationDetail>> {
        return safeApiCall(call = {
            RemoteRepository.getApplications(
                page,
                size,
                status,
                statuses
            )
        })
    }

}